package com.blacktry.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blacktry.entity.model.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blacktry.entity.model.CourseDistribution;
import com.blacktry.entity.model.request.CourseRequest;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author blackTry
 * @since 2021-12-05
 */
public interface CourseService extends IService<Course> {


    List<Course> select(Integer id);

    List<Course> selectListByIds(String[] ids);

    List<Course> select();

    Page<Course> selectPage(Course course, Page<Course> coursePage);

    Integer updateOrInsert(Course course);

    Course selectOne(Integer id);

    Page<Course> dataFlush(Course course, Page<Course> coursePage);

    void clear();

    void flushClear();

    Page<Course> selectCourse(CourseRequest courseRequest, Page<Course> coursePage);
}
